package com.chixing.day11_exception.work;

public class Multiply {

    public String getMultiply(String str1,String str2){
        return null;
    }
    /*public static String getMultiply(String str1,String str2) {
        if (str1.equals("0") || str2.equals("0"))
            return "0";

        int[] res = new int[str1.length() + str2.length()];

        for (int i = str1.length() - 1; i >= 0; i--)    {
            int s1 = str1.charAt(i) - '0';
            for (int j = str2.length() - 1; j >= 0; j--) {
                int s2 = str2.charAt(j) - '0';
                int sum = res[i + j + 1] + s1 * s2;
                res[i + j + 1] = sum % 10;
                res[i + j] += sum / 10;
            }
        }
        StringBuilder stringBuilder = new StringBuilder();
        for (int i = 0; i < res.length; i++) {
            if (i == 0 && res[0] == 0) continue;
            stringBuilder.append(res[i]);
        }

        return stringBuilder.toString();

    }

    public static void main(String[] args) {
        String str1 = "123";
        String str2 = "456";

        System.out.println(Multiply.getMultiply(str1,str2));
    }*/

}
